package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;

public interface EmployeeService {
//     System.out.println("当前线程id:" + Thread.currentThread().getId());
    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    void save(EmployeeDTO employeeDTO);
    /**
     * 分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult PageQuery(EmployeePageQueryDTO employeePageQueryDTO);


    //思路一般是在接口里写方法，然后，在写实现类 dsz
    void startOrStop(Integer status,Long id);

    /**
     * 根据id查员工
     * @param id
     * @return
     */
    Employee getById(Long id);

    void update(EmployeeDTO employeeDTO);

}
